package com.roy.base;


import dev.langchain4j.data.image.Image;
import dev.langchain4j.model.openai.OpenAiImageModel;
import dev.langchain4j.model.output.Response;

/**
 * @author 山顶洞人郑某
 * @className ImageDemo.java 生成图片
 * @date 2025 03 31
 */
public class ImageDemo {


     public static void main(String[] args) {
          OpenAiImageModel aiImageModel = OpenAiImageModel.builder()
                  .build();
          Response<Image> aCat = aiImageModel.generate("a cat");
          System.out.println(aCat.content().url().getPath());
     }
}
